package com.liwujie.bean;


import com.liwujie.common.group.ISave;
import com.liwujie.common.group.IUpadate;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;

@Data
@ApiModel("客户")
public class Customer {
    @ApiModelProperty(value = "客户ID")
    @NotEmpty(message = "修改时ID不能为空！", groups = {ISave.class, IUpadate.class})
    String id;
    @ApiModelProperty(value = "客户姓名", required = true)
    @NotEmpty(message = "客户姓名不能为空！", groups = {ISave.class, IUpadate.class})
    String name;
    @ApiModelProperty(value = "客户电话")
    String mobile;
}
